package com.duanzu.duanzucommon.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * (Coupon)实体类
 *
 * @author makejava
 * @since 2021-07-06 15:30:48
 */
public class Coupon implements Serializable {
    private static final long serialVersionUID = -89118318615225164L;
    /**
     * 主键
     */
    private Integer couponid;
    /**
     * 优惠券名
     */
    private String couponname;
    /**
     * 优惠券类型，1、为满减，2、固定减少
     */
    private Integer coupontype;
    /**
     * 0为全平台通用，对应房东ID
     */
    private Integer withhouseid;
    /**
     * 满多少金额可用
     */
    private Integer withamount;
    /**
     * 优惠券面值
     */
    private Integer useamount;
    /**
     * 优惠券数量
     */
    private Integer couponcount;
    /**
     * 已领取数量
     */
    private Integer takecount;
    /**
     * 已使用数量
     */
    private Integer usercount;
    /**
     * 有效期开始时间
     */
    private Date starttime;
    /**
     * 过期时间
     */
    private Date endtime;
    /**
     * 创建时间
     */
    private Date createtime;


    public Integer getCouponid() {
        return couponid;
    }

    public void setCouponid(Integer couponid) {
        this.couponid = couponid;
    }

    public String getCouponname() {
        return couponname;
    }

    public void setCouponname(String couponname) {
        this.couponname = couponname;
    }

    public Integer getCoupontype() {
        return coupontype;
    }

    public void setCoupontype(Integer coupontype) {
        this.coupontype = coupontype;
    }

    public Integer getWithhouseid() {
        return withhouseid;
    }

    public void setWithhouseid(Integer withhouseid) {
        this.withhouseid = withhouseid;
    }

    public Integer getWithamount() {
        return withamount;
    }

    public void setWithamount(Integer withamount) {
        this.withamount = withamount;
    }

    public Integer getUseamount() {
        return useamount;
    }

    public void setUseamount(Integer useamount) {
        this.useamount = useamount;
    }

    public Integer getCouponcount() {
        return couponcount;
    }

    public void setCouponcount(Integer couponcount) {
        this.couponcount = couponcount;
    }

    public Integer getTakecount() {
        return takecount;
    }

    public void setTakecount(Integer takecount) {
        this.takecount = takecount;
    }

    public Integer getUsercount() {
        return usercount;
    }

    public void setUsercount(Integer usercount) {
        this.usercount = usercount;
    }

    public Object getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Object getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Object getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

}
